package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 充值记录对象 jiajia_chongzhi_record
 * 
 * @author knd
 * @date 2021-10-13
 */
public class JiajiaChongzhiRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 用户关联id */
    @Excel(name = "用户关联id")
    private Long uid;

    /**充值单号*/
    private String chongZhiSn;

    /**充值状态 0未成功 1 充值成功*/
    private Integer status;

    /** 充值金额 */
    @Excel(name = "充值金额")
    private BigDecimal chongZhi;

    /** 赠送金额 */
    @Excel(name = "赠送金额")
    private BigDecimal zengSong;

    /** 充值前余额 */
    @Excel(name = "充值前余额")
    private BigDecimal beforeMoney;

    /** 充值后余额 */
    @Excel(name = "充值后余额")
    private BigDecimal afterMoney;

    /** 充值时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "充值时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addtime;

    /**用户姓名*/
    private String username;


    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getChongZhiSn() {
        return chongZhiSn;
    }

    public void setChongZhiSn(String chongZhiSn) {
        this.chongZhiSn = chongZhiSn;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setChongZhi(BigDecimal chongZhi) 
    {
        this.chongZhi = chongZhi;
    }

    public BigDecimal getChongZhi() 
    {
        return chongZhi;
    }
    public void setZengSong(BigDecimal zengSong) 
    {
        this.zengSong = zengSong;
    }

    public BigDecimal getZengSong() 
    {
        return zengSong;
    }
    public void setBeforeMoney(BigDecimal beforeMoney) 
    {
        this.beforeMoney = beforeMoney;
    }

    public BigDecimal getBeforeMoney() 
    {
        return beforeMoney;
    }
    public void setAfterMoney(BigDecimal afterMoney) 
    {
        this.afterMoney = afterMoney;
    }

    public BigDecimal getAfterMoney() 
    {
        return afterMoney;
    }
    public void setAddtime(Date addtime) 
    {
        this.addtime = addtime;
    }

    public Date getAddtime() 
    {
        return addtime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("uid", getUid())
            .append("chongZhi", getChongZhi())
            .append("zengSong", getZengSong())
            .append("beforeMoney", getBeforeMoney())
            .append("afterMoney", getAfterMoney())
            .append("addtime", getAddtime())
            .toString();
    }
}
